package com.yuchuang.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yuchuang.model.Spec;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author:cy Date: 2023-06-16-13:19
 * Description:
 */
@Repository
public interface SpecMapper extends BaseMapper<Spec> {
    List<Spec> queryAllImplBatis(@Param(Constants.WRAPPER) Wrapper queryWrapper);
    IPage<Spec> selectPageVoMapper(IPage<Spec> page, @Param(Constants.WRAPPER) Wrapper queryWrapper);
    int insertImplBatis(Spec spec);
    int updateImplBatis(Map<String,Object> params);
    int deleteImplBatis(Map<String,Object> params);
}
